#ifndef KLISTWIDGET_H
#define KLISTWIDGET_H

#include <QWidget>
#include "kitemwidget.h"
#include "themeController.h"
#include "../screencapsdk_global.h"
namespace  kdk 
{


class KListWidgetPrivate;
/*
 *  一个可以显示两行文本的listwidget
 */
class SCREENCAPSDK_EXPORT KListWidget : public QListWidget
{
     Q_OBJECT
public:
    KListWidget(QWidget* parent);
    /*
     * 将Itemwidget插入到listwidget
     * m_itemwidget需要插入的Itemwidget
    */
    void AddItemWidget(KItemWidget* m_itemwidget);

    //void mousePressEvent(QMouseEvent *event);

    //void itemClicked(QListWidgetItem * item);


private:
    Q_DECLARE_PRIVATE(KListWidget);
    KListWidgetPrivate* const d_ptr;
};
}
#endif // KLISTWIDGET_H
